import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.click(findTestObject('Object Repository/productLib/Page_/div_'))

WebUI.click(findTestObject('Object Repository/productLib/Page_/li_'))

WebUI.click(findTestObject('Object Repository/productLib/Page_/div__1'))

WebUI.setText(findTestObject('productLib/Page_/input__chengpinkumingcheng'), GlobalVariable.FLOW_PROD_LIB_NAME)

WebUI.click(findTestObject('productLib/Page_/input__jigou'))

WebUI.click(findTestObject('productLib/Page_/span__el-radio__inner'))

WebUI.click(findTestObject('productLib/Page_/input__jingweidu'))

WebUI.mouseOver(findTestObject('productLib/Page_/canvas__amap-labels'))

WebUI.click(findTestObject('productLib/Page_/canvas__amap-labels'))

WebUI.click(findTestObject('productLib/Page_/button_addProduct'))

WebUI.click(findTestObject('productLib/Page_/modal_chanpinleixing'))

'含全局变量'
WebUI.click(findTestObject('productLib/Page_/select_chanpinleixing'))

'含全局变量'
WebUI.click(findTestObject('productLib/Page_/span_model'))

WebUI.click(findTestObject('productLib/Page_/button__el-button el-button--primary el-button--medium el-transfer__button'))

WebUI.click(findTestObject('productLib/Page_/modal_submit'))

WebUI.click(findTestObject('productLib/Page_/button_addPhone'))

WebUI.setText(findTestObject('productLib/Page_/input__phone_people'), '自动化联系人')

WebUI.setText(findTestObject('productLib/Page_/input__phone_num'), '18040542765')

WebUI.click(findTestObject('productLib/Page_/phone_add_button'), FailureHandling.STOP_ON_FAILURE)

WebUI.click(findTestObject('productLib/Page_/phone_save_button'))

WebUI.setText(findTestObject('productLib/Page_/input__wuliucherongliang'), '20')

WebUI.click(findTestObject('productLib/Page_/div_submit'))

